﻿using System;
using System.Collections.Generic;
using System.Text;

namespace T.FAS.Runtime.ScheduleJob.SPI
{
    /// <summary>
    /// 计划任务订阅执行频率
    /// </summary>
    public class ScheduleJobSubscriptionFrequency
    {
        public string ID { get; set; }
        public string ScheduleJobSubscriptionID { get; set; }
        /// <summary>
        /// 执行频率定义类型
        /// </summary>
        public FrequencyType FrequencyType { get; set; }
        /// <summary>
        /// 如果FrequencyType为系统预置频率，该字段为系统执行频率定义的ID，相关的CronExpress表达式通过系统执行频率定义中进行获取
        /// </summary>
        public List<SysExecuteFrequency> SysFrequencies { get; set; }
        /// <summary>
        /// 如果FrequencyType为用户自定义频率，用户通过Cron表达式定义器进行定义后存储到该字段
        /// </summary>
        public string CronExpression { get; set; }

    }
}
